package com.groupname.dangerousdelves;

import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.content.Context;
import sofia.app.Screen;
import android.app.Activity;

// -------------------------------------------------------------------------
/**
 *  Write a one-sentence summary of your class here.
 *  Follow it with additional details about its purpose, what abstraction
 *  it represents, and how to use it.
 *
 *  @author Chris Fieldman
 *  @version 2012.11.15
 */
public class DangerousDelvesGame
    extends Activity implements Game
{
    //~-------------------------------------------------------------------------
    // Member Variables
    public static FileIO fileIO;

    public static Context context;
    //public static Thread gameThread = Thread.currentThread();
    public static Thread musicThread;
    public static boolean isPlayingSplashMusic = true;

    //~-------------------------------------------------------------------------
    // Constructors


    //~-------------------------------------------------------------------------
    // Methods
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        fileIO = new AndroidFileIO(this);
        //audio = new AndroidAudioManager();
        //screen = getStartScreen();
    }

    public FileIO getFileIO()
    {
        return fileIO;
    }

    /*public AudioManager getAudio()
    {
        return audio;
    }*/

    public void setScreen(Screen newScreen)
    {
        if (newScreen == null)
        {
            throw new IllegalArgumentException("Screen must not be null.");
        }

        //screen = newScreen;
    }

    public Screen getCurrentScreen()
    {
        return null;
    }

    public Screen getStartScreen()
    {
        // TODO Auto-generated method stub
        return null;
    }
}
